export const ip = 'http://172.16.0.182:8058'
// export const ip = ''

import http from './http'

// export const ip = 'http://47.108.208.49:80'
/* 技术栈CRUD */
export const jishuzhanInsert = (data) => { 
  return http.post('/skillBase/insert',data)
}
export const jishuzhanSelect = (data) => { 
  return http.get('/skillBase/selectByLimit',data)
}
export const jishuzhanUpdate = (data) => { 
  return http.put('/skillBase/updateById',data)
}
export const jishuzhanDelete = (data) => { 
  return http.delete('/skillBase/deleteById',data)
}
export const jishuzhanSelectAll = (data) => { 
  return http.get('skillBase/selectAll',data)
}
/* 指导类别CRUD */
export const typeInsert = (data) => { 
  return http.post('/typeBase/insert',data)
}

export const typeSelect = (data) => { 
  return http.get('/typeBase/selectByLimit',data)
}

export const typeUpdate = (data) => { 
  return http.put('/typeBase/updateById',data)
}
export const typeDelete = (data) => { 
  return http.delete('/typeBase/deleteById',data)
}
export const typeSelectAll = (data) => { 
  return http.get('/typeBase/selectAll',data)
}
/* 项目名称CRUD */
export const projectBaseInsert = (data) => { 
  return http.post('/projectBase/insert',data)
}
export const projectBaseDelete = (data) => { 
  return http.delete('/projectBase/deleteById',data)
}
export const projectBaseUpdate = (data) => { 
  return http.put('/projectBase/updateById',data)
}
export const projectBaseSelect = (data) => { 
  return http.get('/projectBase/selectByLimit',data)
}
export const projectBaseSelectByName = (data) => { 
  return http.get('/projectBase/selectByName',data)
}
export const projectBaseImgUpload = ip+'/projectBase/miniImgUpload'
export const projectBaseImgUploadList = ip+'/projectBase/profileImgUpload'
/* 项目指导库      CRUD */
export const projectGuideInsert = (data) => { 
  return http.post('/projectGuide/insert',data)
}
export const projectGuideDelete = (data) => { 
  return http.delete('/projectGuide/deleteById',data)
}
export const projectGuideUpdate = (data) => { 
  return http.put('/projectGuide/updateById',data)
}
export const projectGuideSelect = (data) => { 
  return http.get('/projectGuide/selectByLimit',data)
}